package com.huangkailong.designpattern.decarator;

/**
 * 装饰模式测试.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * main.
     */
    public static void main(String[] args) {
        Pancake pancake = new BasePancake();
        EggPancakeDecorator eggPancakeDecorator = new EggPancakeDecorator(pancake);
        SausagePancakeDecorator sausagePancakeDecorator =
            new SausagePancakeDecorator(eggPancakeDecorator);
        System.out.println(sausagePancakeDecorator.getMsg());
        System.out.println("价格：" + sausagePancakeDecorator.getPrice());
    }
}
